package guiLayer;

import java.awt.BorderLayout;
import java.awt.EventQueue;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.border.EmptyBorder;
import javax.swing.JButton;

public class ProductionGUI extends JFrame {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private JPanel contentPane;
	private JPanel panel;
	

	/**
	 * Launch the application.
	 */
	public static void main(String[] args) {
		EventQueue.invokeLater(new Runnable() {
			public void run() {
				try {
					ProductionGUI frame = new ProductionGUI();
					frame.setVisible(true);
				} catch (Exception e) {
					e.printStackTrace();
				}
			}
		});
	}

	/**
	 * Create the frame.
	 */
	public ProductionGUI() {
		setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		setBounds(100, 100, 450, 300);
		contentPane = new JPanel();
		contentPane.setBorder(new EmptyBorder(5, 5, 5, 5));
		contentPane.setLayout(new BorderLayout(0, 0));
		setContentPane(contentPane);
		
		panel = new JPanel();
		panel.setLayout(null);
		
		
		JButton btnOvenProduktion = new JButton("ovn");
		btnOvenProduktion.setBounds(10, 11, 89, 23);
		btnOvenProduktion.addActionListener(new ActionListener() {

			@Override
			public void actionPerformed(ActionEvent e) {
				// TODO Auto-generated method stub
				OvenProduction pr = new OvenProduction();
				pr.setVisible(true);
				
			}
			
		});
		panel.add(btnOvenProduktion);
		
		JButton btnFrsser = new JButton("fr\u00E6sser");
		btnFrsser.setBounds(10, 45, 89, 23);
		panel.add(btnFrsser);
		
		JButton btnNewButton = new JButton("pakkeri");
		btnNewButton.setBounds(10, 79, 89, 23);
		panel.add(btnNewButton);
		
		contentPane.add(panel, BorderLayout.CENTER);
	}
	
	public JPanel makeAll(){
		return contentPane;
	}
	
	
}
